namespace ScrumSprintMonitor.ServerAdapter.TFS.TemplateAdaptors
{
    #region #using Directives

    using System.ComponentModel.Composition;

    using Infrastructure;

    using Isolation.TeamFoundationServer;

    using PreEmptive.Attributes;

    #endregion

    [Export(typeof(IProcessTemplateAdapter))]
    public class ConchangoV3ProcessTemplateAdapter : IProcessTemplateAdapter
    {
        #region IProcessTemplateAdapter Members

        [Feature("Conchango V3 Process Template")]
        public void Initialize()
        {
        }

        public string ProcessTemplateName
        {
            get { return "Scrum for Team System v3"; }
        }

        public virtual IWorkItemAdapter AdaptWorkItem(object workItem)
        {
            return new ConchangoV3ScrumWorkItemAdapter((IWorkItem) workItem);
        }

        public virtual string[] WorkItemTypeNames
        {
            get { return new[] {"Sprint Backlog Task", "Product Backlog Item", "Bug"}; }
        }

        #endregion
    }
}